package qm.com.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import qm.com.dao.QingmingDao;
import qm.com.dto.QingMingActive;
import qm.com.service.QingmingService;

@Service
public class QingmingServiceImpl implements QingmingService {

	
	@Resource
	private QingmingDao qingmingDao;
	
	@Transactional(propagation = Propagation.NOT_SUPPORTED)
	public int insertQMAction(QingMingActive qingMingActive) throws Exception {
	
		return qingmingDao.insertQMActive(qingMingActive);
	}

	@Transactional(propagation = Propagation.NOT_SUPPORTED)
	public List<QingMingActive> selectQMAction(String eat) throws Exception {
		
		return qingmingDao.selectQMActive(eat);
	}

	@Transactional(propagation = Propagation.NOT_SUPPORTED)
	public int updateQMAction(QingMingActive qingMingActive) throws Exception {
		
		return qingmingDao.updateQMAction(qingMingActive);
	}

	@Transactional(propagation = Propagation.NOT_SUPPORTED)
	public int deleteQMAction(String eat) throws Exception {
	
		return qingmingDao.deleteQMAction(eat);
	}

}
